
import { usersService } from './user.service';
import {users} from './users.entity'
import { Controller, Get } from "@nestjs/common";

@Controller('users')
export class usersController{
 constructor(private readonly usService:usersService){}

    @Get()
    getAll(): Promise<users[]>{
        return this.usService.getAll();
    }

}